home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Macademic for Students & Teachers
/
Macademic for Students and Teachers (Quantum Leap)(1992).iso
/
General Interest
/
US Time
/
card_3627.txt
< prev
next >
Wrap
Text File
|
1990-08-01
|
6KB
|
307 lines
-- card: 3627 from stack: in
-- bmap block id: 2567
-- flags: 0000
-- background id: 3241
-- name: US time zones
----- HyperTalk script -----
on idle
global tick
global whichZone
put the long time into tick
put last word of card field "Zone" into whichZone
if whichZone is "Pacific" then
placeTime
end if
if whichZone is "Mountain" then
subtractTick
placeTime
end if
if whichZone is "Central" then
subtractTick
subtractTick
placeTime
end if
if whichZone is "Eastern" then
subtractTick
subtractTick
subtractTick
placeTime
end if
end idle
on subtractTick
global tick
convert tick to seconds
subtract 3600 from tick
convert tick to long time
end subtractTick
on addTick
global tick
convert tick to seconds
add 3600 to tick
convert tick to long time
end addTick
on placeTime
global tick
put tick into card field "Pacific"
addTick
put tick into card field "Mountain"
addTick
put tick into card field "Central"
addTick
put tick into card field "Eastern"
end placeTime
on mouseUp
visual effect scroll down
go back
end mouseUp
-- part 11 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=1 top=108 right=124 bottom=88
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 2 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=1 top=121 right=138 bottom=88
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Pacific
-- part 12 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=112 top=118 right=134 bottom=198
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 6 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=112 top=131 right=148 bottom=198
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Mountain
-- part 13 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=236 top=133 right=149 bottom=322
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 14 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=414 top=226 right=242 bottom=500
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 7 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=236 top=146 right=163 bottom=322
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Central
-- part 8 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=414 top=239 right=256 bottom=500
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Eastern
-- part 9 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=141 top=323 right=339 bottom=354
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 9
-- style flags: 16384
-- line height: 12
-- part name: Zone
-- part 15 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=1 top=108 right=139 bottom=89
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
put "Pacific" into last word of card field "Zone"
end mouseUp
-- part 16 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=111 top=118 right=149 bottom=199
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
put "Mountain" into last word of card field "Zone"
end mouseUp
-- part 17 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=235 top=133 right=164 bottom=323
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
put "Central" into last word of card field "Zone"
end mouseUp
-- part 18 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=413 top=225 right=256 bottom=501
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
put "Eastern" into last word of card field "Zone"
end mouseUp
-- part contents for card part 2
----- text -----
6:17:14 PM
-- part contents for card part 9
----- text -----
Your time zone is: Central
-- part contents for card part 6
----- text -----
7:17:14 PM
-- part contents for card part 7
----- text -----
8:17:14 PM
-- part contents for card part 8
----- text -----
9:17:14 PM
-- part contents for card part 14
----- text -----
Eastern
-- part contents for card part 13
----- text -----
Central
-- part contents for card part 11
----- text -----
Pacfic
-- part contents for card part 12
----- text -----
Mountain